all: server client

b_all: b_server b_client

c_all: c_server c_client

lib: share.hpp

flag=-g

server: server.cpp lib
	g++ server.cpp -lzmq -o server
client: client.cpp lib
	g++ client.cpp -lzmq -o client

b_server: b_server.cpp lib
	g++ b_server.cpp -lzmq -o b_server ${flag}

b_client: b_client.cpp lib
	g++ b_client.cpp -lzmq -o b_client ${flag}

c_server: c_server.cpp lib
	g++ c_server.cpp -lzmq -o c_server ${flag}

c_client: c_client.cpp lib
	g++ c_client.cpp -lzmq -o c_client ${flag}

clean:
	rm client server
